package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.CategoryDao;
import com.oscarmovie.model.Category;

public class CategoryServiceImpl implements CategoryService{
	private CategoryDao categoryDao;

	public void setCategoryDao(CategoryDao categoryDao) {
		this.categoryDao = categoryDao;
	}

	public CategoryDao getCategoryDao() {
		return categoryDao;
	}

	
	public void save(Category category) {
		categoryDao.save(category);
	}

	
	public Category load(int id) {
		Category category =  categoryDao.load(id);
		return category;
	}

	
	public List<Category> loadAll() {
		return categoryDao.loadAll();
	}
}
